home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d2
/
serlyz03.arc
/
SERNOT.BAS
< prev
Wrap
BASIC Source File
|
1989-11-13
|
902b
|
31 lines
DECLARE FUNCTION SerialInst%
DECLARE FUNCTION SerialValid%
DECLARE FUNCTION SerialGet% (ser$, size%)
DECLARE FUNCTION SerNameGet% (RegName$)
' simple program to demo / test QBSerlyz:
' 1. compile the program ( BC sernot /o /s;)
' 2. LINK with SERLYZ.LIB or just SERNO.OBJ
' 3. Run the EXE to examine error codes
' 4. QBSerlyze the program with QBSERIAL or QBSERLYZ
' 5. Re Run to examine the returns now.
' Feel free to tamper with the EXE to see how
' the return catch the changes!
DEFINT A-Z
CLEAR
ser$ = SPACE$(15)
RegName$ = SPACE$(32)
PRINT " SerialInst%: "; SerialInst
PRINT "SerialValid%: "; SerialValid
errc = SerialGet%(ser$, size%)
PRINT " SerialGet%: "; errc; ser$; size
errc = SerNameGet(RegName$)
PRINT " SerNameGet: "; errc; RegName$